export default function () {
  // 判断课程等级
  const courseTypeFn = (type) => {
    let val = "";
    switch (type) {
      case 1:
        val = "初级";
        break;
      case 2:
        val = "中级";
        break;
      case 3:
        val = "高级";
        break;
      default:
        val = "";
    }
    return val;
  };

  return {
    courseTypeFn,
  };
}
